<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\user_center\behavior\common;

/**
 * 检测 用户 uid
 * @package app\user_center\behavior\common
 * @author jason wang
 */
class checkUserId{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
		$user_id 	= $params['user_id'];//艺人id

		$rel = model('user_center/Member', 'model\user') -> find($user_id);
		if(!$rel){
			  return 'user_id无效';
		}elseif($rel->member_status == 0){
        return '用户被禁用';
    }else{
			  return true;
		}
		 
    }
}
